package com.sunxd.vue.infrastructure.adapter.db.dao;

import com.sunxd.vue.infrastructure.adapter.db.base.MyBatisDao;
import com.sunxd.vue.infrastructure.adapter.db.po.InteractiveActivityPO;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class InteractiveActivityDao extends MyBatisDao<InteractiveActivityPO> {

    public InteractiveActivityPO findByUuid(String uuid) {
        Map<String, Object> criteria = new HashMap<>(1);
        criteria.put("uuid", uuid);
        return this.sqlSession.selectOne(this.sqlId("findByUuid"), criteria);
    }
}
